package com.feng.project.project01.config;

import com.feng.common.spring.ApplicationContextHolder;
import com.feng.project.project01.properties.CommonProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author Administrator
 */
@EnableConfigurationProperties(value = {CommonProperties.class})
public class CommonConfig {

    @Bean
    public ApplicationContextHolder applicationContextHolder(){
        return new ApplicationContextHolder();
    }

}
